package com.oozol.lieluyun.web;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
   @RequestMapping({"/"})
   public String index(HttpServletRequest request, Model model) {
      Object loginName = request.getSession().getAttribute("loginName");
      model.addAttribute("loginName", loginName);
      return "index/index";
   }
}
